import {
  SIGN_IN,
  SIGN_IN_REQUEST,
  SIGN_IN_SUCCESS,
  SIGN_IN_FAILED
} from '../constance/actionType';


const BASE_URL = 'http://localhost:8360/biz/';

const apiMap = {
  [SIGN_IN]: {
    url: BASE_URL + 'account/signin',
    method: 'post',
    timeout: 30 * 1000,
    types: [SIGN_IN_REQUEST, SIGN_IN_SUCCESS, SIGN_IN_FAILED]
  }
}

export function signin() {
  return apiMap[SIGN_IN];
}
